//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { WechatUserHasTags, WechatUserHasTagsResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooWechatUserHasTagsList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<WechatUserHasTagsResponse>(`/uctoo/wechat_user_has_tags/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooWechatUserHasTags = async (id: string) => {
  return requestClient.get<WechatUserHasTags>(`/uctoo/wechat_user_has_tags/${id}`);
};

export const adductooWechatUserHasTags = async (data: Partial<WechatUserHasTags>) => {
  return requestClient.post<WechatUserHasTags>('/uctoo/wechat_user_has_tags/add', data);
};

export const edituctooWechatUserHasTags = async (data: Partial<WechatUserHasTags>) => {
  return requestClient.post<WechatUserHasTags>('/uctoo/wechat_user_has_tags/edit', data);
};

export const deleteuctooWechatUserHasTags = async (id: string) => {
  return requestClient.post<any>('/uctoo/wechat_user_has_tags/del', { id });
};
